//Menu.h - Class Menu

#ifndef _MENU_H_
#define _MENU_H_

#include <string>
#include <iostream>

using namespace std;

class Menu
{
private:
	unsigned int m_numOptions;	//number of menu options
	string* m_optionsText;	//pointer for strings array of options
public:
	Menu() : m_numOptions(0), m_optionsText(NULL) {}	//constructor
	unsigned int getNumOfOptions() {return(m_numOptions);}	//gets numbers of options
	string* getOptionsText() {return m_optionsText;}	//gets text options 
	void set(const unsigned int optionNum, const string &optionText);	//sets an option text to the right place in the menu array	
	void init(const unsigned int numOptions);	////allocates the strings array for options
	unsigned int getChoiceFromUser();	//gets the cohice from the user
	void printMenu();	//print menu
	~Menu() {delete []m_optionsText;}	//delete the strings of the string array
};

#endif